package com.woniu.pojo;

import java.io.Serializable;

/**
 * school
 * @author 
 */
public class School implements Serializable {
    /**
     * 校区id
     */
    private Integer schid;

    /**
     * 校区名
     */
    private String schname;

    private static final long serialVersionUID = 1L;

    public Integer getSchid() {
        return schid;
    }

    public void setSchid(Integer schid) {
        this.schid = schid;
    }

    public String getSchname() {
        return schname;
    }

    public void setSchname(String schname) {
        this.schname = schname;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        School other = (School) that;
        return (this.getSchid() == null ? other.getSchid() == null : this.getSchid().equals(other.getSchid()))
            && (this.getSchname() == null ? other.getSchname() == null : this.getSchname().equals(other.getSchname()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSchid() == null) ? 0 : getSchid().hashCode());
        result = prime * result + ((getSchname() == null) ? 0 : getSchname().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", schid=").append(schid);
        sb.append(", schname=").append(schname);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}